package com.mxy.myapplication.pojo;

public class Pojo3 {


  private String peopleIDcard;
  private String name;

  public Pojo3(String peopleIDcard, String name) {
    this.peopleIDcard = peopleIDcard;
    this.name = name;
  }

  public String getPeopleIDcard() {
    return peopleIDcard;
  }

  public void setPeopleIDcard(String peopleIDcard) {
    this.peopleIDcard = peopleIDcard;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Override
  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }

    if (!(obj instanceof Pojo3)) {
      return false;
    }

    if (((Pojo3) obj).peopleIDcard == null || ((Pojo3) obj).name == null || this.name == null || this.peopleIDcard == null) {
      return false;
    }

    if ((((Pojo3) obj).peopleIDcard.equals(this.peopleIDcard)) && (((Pojo3) obj).name.equals(this.name))) {
      return true;
    } else {
      return false;
    }
  }

  @Override
  public int hashCode() {
    return (this.peopleIDcard+this.name).hashCode();
  }
}
